package org.duanyu.shopping_order_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.duanyu.shopping_common.pojo.Orders;

import java.util.List;

@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    //查询订单详情
    Orders findById(String id);

    //查询用户订单
    List<Orders> findOrdersByUserIdAndStatus(@Param("userId") Long userId,@Param("status") Integer status);
}
